﻿using System;
using System.Collections.Generic;
using System.Text;

namespace MM.Common.DBBase
{
    public abstract class LogBase
    {
        // Fields
        protected string _computerId = "";
        protected string _eventName = "";
        protected string _logName = "";
        protected string _objectName = "";
        protected int _operId;
        protected string _systemCode = "";

        // Methods
        protected LogBase()
        {
        }

        public abstract void WriteExp<T>(T exp);
        public abstract void WriteExp(string objectname, string eventname, string info);
        public abstract void WriteLog<T>(T info);
        public abstract void WriteLog(LogType type, string info);

        // Properties
        public bool EnableExp { get; set; }

        public bool EnableLog { get; set; }
    }
}
